package com.aatattoo.light_food_service.service;

import com.aatattoo.light_food_service.entity.DynamicTag;
import com.aatattoo.light_food_service.entity.DynamicTagFollow;
import com.aatattoo.light_food_service.mapper.DynamicTagFollowMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author aatattoo
 * @Date 2022/2/28 11:29 上午
 * @msg:
 */
@Service
public class DynamicTagFollowService {
    @Autowired
    private DynamicTagFollowMapper dynamicTagFollowMapper;

    public int followTag(DynamicTagFollow dynamicTagFollow){
        return dynamicTagFollowMapper.followTag(dynamicTagFollow);
    }

    public int unFollowTag(DynamicTagFollow dynamicTagFollow){
        return dynamicTagFollowMapper.unFollowTag(dynamicTagFollow);
    }

    public List<Integer> getFollowTagId(int userId){
        return dynamicTagFollowMapper.getFollowTagId(userId);
    }

    public int isTableFollowTag(DynamicTagFollow dynamicTagFollow){
        return dynamicTagFollowMapper.isTableFollowTag(dynamicTagFollow);
    }



}
